package com.kx.center.mappers;

import java.util.List;

import com.kx.center.entity.Address;
import com.kx.center.entity.query.QueryFoodCategory;
import com.kx.center.entity.shop.ShopOrder;
import com.kx.center.entity.shop.ShopOrderGoods;
import com.kx.center.entity.shop.ShopOrderLog;
import com.kx.center.entity.shop.ShopOrderPay;
import com.kx.center.entity.shop.ShopOrderRefund;

public interface ShopOrderMapper {
	//订货单
	public int insertShopOrder(ShopOrder shopOrder);
	public ShopOrder findShopOrderById(Integer id);
	public void updateShopOrderFromCancel(ShopOrder shopOrder);
	public void updateShopOrderFromConfirm(ShopOrder shopOrder);
	public void updateShopOrderFromReject(ShopOrder shopOrder);
	public void updateShopOrderFromPayment(ShopOrder shopOrder);
	public void updateShopOrderFromDeliver(ShopOrder shopOrder);
	public void updateShopOrderFromReceive(ShopOrder shopOrder);
	public List<ShopOrder> findShopOrderList(QueryFoodCategory queryFoodCategory);
	public Integer findShopOrderCount(QueryFoodCategory queryFoodCategory);
	//订货单详情
	public int insertShopOrderGoods(ShopOrderGoods shopOrderGoods);
	public List<ShopOrderGoods> findShopOrderGoodsById(Integer id);
	//订货单支付
	public int insertShopOrderPay(ShopOrderPay shopOrderPay);
	public List<ShopOrderPay> findShopOrderPayPN();
	public void updateShopOrderPayByPayNum(ShopOrderPay shopOrderPay);
	public ShopOrderPay findShopOrderPayByPayNum(String payNum);
	//订货单退款
	public int insertShopOrderRefund(ShopOrderRefund shopOrderRefund);
	//订货单日志
	public int insertShopOrderLog(ShopOrderLog shopOrderLog);
	public Address findShopOrderAddress(Integer id);
	public Address getOrderAddress(Integer orderId);
	
}
